<template>
  <div id="app">
    <h1>{{ str }}</h1>
    <button @click="resrve">蛋笨大是的念着倒</button>
  </div>
</template>

<script>
export default {
  name: "App",
  data() {
    return {
      str: "Hello World",
    };
  },
  methods: {
    resrve() {
      this.str = this.str.split("").reverse().join("");
    },
  },
};
</script>